package everydayone.overlap;
/**
 * @Date 2020/03/18
 * @author 王光浩
 * @Thinking 找出一个矩形不在另一矩形的条件然后进行判断。
 */
public class MyMethodOne {
	 public boolean isRectangleOverlap(int[] rec1, int[] rec2) {
		if(rec1[0]>=rec2[2] || rec1[2]<=rec2[0] || rec1[1]>=rec2[3] || rec1[3]<=rec2[1])
			return false;
		return true;
	 }
}